package com.nondo.rdp.finance.service.analysis;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.auth.endpoint.model.Page;
import com.nondo.rdp.finance.domain.analysis.Analysis;
import com.nondo.rdp.finance.domain.analysis.AnalysisUp;

public interface AnalysisUpService {
    /**
     * 保存分析
     *
     * @param analysisUp
     */
    AnalysisUp save(AnalysisUp analysisUp);

    /**
     * 根据主键ID删除分析
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 根据主键ID查询分析
     *
     * @param id
     * @return
     */
    AnalysisUp findOne(Long id);

    /**
     * 根据分析ID和用户ID查找点赞
     *
     * @param analysis
     * @param user
     * @return
     */
    AnalysisUp findByAnalysisAndUser(Analysis analysis, User user);
}
